package com.base.cn.platform.os.service.course.cloud;

import com.base.cn.platform.os.service.FeignAuthConfig;
import com.base.cn.platform.os.service.course.CourseBaseService;
import com.github.pagehelper.PageInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * @author LIZHIPENG
 * @create 2018-08-21 下午 4:31
 */
@FeignClient(value = CourseBaseService.appName, configuration = FeignAuthConfig.class)
public interface CloudService extends CourseBaseService{

    @RequestMapping(contextPath + "/findDemandPage")
    Map<String,Object> findDemandPage(@RequestParam("currentPage") Integer currentPage,
                                      @RequestBody Map<String, Object> params);

    @RequestMapping(contextPath + "/findLivePage")
    Map<String,Object> findLivePage(@RequestParam("currentPage") Integer currentPage,
                                    @RequestBody Map<String, Object> params);

    @RequestMapping(contextPath + "/deleteDemand")
    Map<String,Object> deleteDemand(@RequestParam("id_varchar") String id_varchar);

    @RequestMapping(contextPath + "/closeLive")
    Map<String,Object> closeLive(@RequestParam("room_id") String room_id, @RequestParam("type") Integer type);

    @RequestMapping(contextPath + "/openVideoCloudService")
    Map<String,Object> openVideoCloudService(@RequestBody Map<String, String> params);

    @RequestMapping(contextPath + "/querySmsStatis")
    Map<String,Object> querySmsStatis(@RequestBody Map<String, Object> params, @RequestParam("type") int type);

    @RequestMapping(contextPath + "/findCCLivePage")
    Map<String,Object> findCCLivePage(@RequestParam("currentPage") Integer currentPage);

    @RequestMapping(contextPath + "/findTTLivePage")
    Map<String,Object> findTTLivePage(@RequestParam("currentPage") Integer currentPage);


    /**
     * 获取平台 回放地址
     * @param roomId
     * @return
     */
    @RequestMapping(contextPath + "/findCCPlaybackPage")
    List<Map> findCCPlaybackPage(@RequestParam("roomId") String roomId);

}
